<%@page import="java.net.URL"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.utils.HttpUtils"%>
<%@page import="java.io.PrintWriter"%>
<%@ page language="java" contentType="text/plain; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String content = "";
	String str = request.getQueryString();
    long time = System.currentTimeMillis();
	try {
	    Map headers = new HashMap();
	    byte[] b = HttpUtils.webGet(new URL("http://127.0.0.1:8080/kypay/i/pay/report.do?" + str), headers, 30000, 30000);
	    content = new String(b);
	} catch (Exception e) {
	    System.out.println("" + e.toString());
	}
	System.out.println("i/gr.jsp cost:" + (System.currentTimeMillis() - time) + ";content:" + content.replace("\r","\\r").replace("\n","\\n"));
	response.reset();
	response.setContentLength(content.length());
	response.setContentType("text/plain;charset=utf-8");
	PrintWriter pw = response.getWriter();
	pw.write(content);
	pw.flush();
	pw.close();
	if (true)
		return;
%>